/*
Like Express.JS, Koa works by exposing an application as a request handler function, but only by calling the callback method.
*/
const app = require('koa')();
const server = require('http').createServer(app.callback());
const io = require('socket.io')(server);
io.on('connection', (client) => { /* … */ });
server.listen(3000);
